package com.hmall.mapper;

import com.hmall.model.MallDealer;
import com.hmall.model.SysDept;
import com.hmall.util.MyMapper;
import com.hmall.vo.DealerVo;
import com.hmall.vo.MallDealerVo;
import com.hmall.vo.MallShippingVo;
import com.hmall.vo.TreeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallDealerMapper extends MyMapper<MallDealer> {
    DealerVo selectByDeptId(@Param("dept_id") Integer dept_id);

    List<MallDealerVo> selectByArea(@Param("city") String city);

    List<MallShippingVo> selectAllDealer();

    Integer selectDealerId(@Param("dept_id") Integer dept_id);

    Integer checkSelected(@Param("user_id") Integer user_id,@Param("dealer_id") Integer dealer_id);

    MallDealer selectByName(@Param("name") String name);

}